package com.java1412.dao;

import com.java1412.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author java1412
 * @create 2021-07-11 19:46
 */
@Repository
public interface UserRepository extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {

    User findUserByCode(String code);

    User findByUsernameAndPassword(String username, String password);
}
